<template>
    <div>
        <h1>添加检测记录</h1>
        <div>
        <el-form ref="form"  :model="form" label-width="150px" >
            <el-form-item label="住院日期">
                <el-date-picker v-model="form.value" type="datetime"  placeholder="检测时间">检测时间
                </el-date-picker>
            </el-form-item>
            <el-form-item label="核酸检测结果">
                <el-radio-group v-model="form.isResult">
                    <el-radio :label="1">阳性</el-radio>
                    <el-radio :label="0">阴性</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="CT检测结果">
                <el-radio-group v-model="form.ctResult">
                    <el-radio :label="1">阳性</el-radio>
                    <el-radio :label="0">阴性</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item>
            <el-button type="primary" @click="onSubmit">提交</el-button>
            <el-button>取消</el-button>
            </el-form-item>
        </el-form>
        </div>
    </div>
</template>
<script>
export default {
    data(){
        return{
            form:{
                value:'',
                isResult:0,
                ctResult:0
            } 
        }
    },
    methods:{
      onSubmit() {
        console.log('submit!');
    }
  }
}
</script>